package com.financing.platform.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IProductVideoDao;
import com.financing.platform.dto.ProductVideo;
import com.financing.platform.service.IProductVideoService;

@Service("productVideoService")
public class ProductVideoServiceImpl extends BaseServiceImpl implements IProductVideoService {

	@Autowired
	IProductVideoDao productVideoDao;

	@Override
	public List<ProductVideo> queryProductVideo(ProductVideo productVideo) throws Exception {
		return productVideoDao.queryProductVideo(productVideo);
	}

	@Override
	public int updateProductVideo(ProductVideo productVideo) throws Exception {
		productVideoDao.deleteProductVideo(productVideo);
		return productVideoDao.insertProductVideo(productVideo);
	}
	
}
